package com.yeyks.common.appcommon.param.finance;

import com.yeyks.common.appcommon.result.CommonAuthHeader;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.Serializable;

/**
 * @author: dagny
 * @date: 2019/6/28 0028 17:07
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "收支账户输入参数")
public class AddIncomeAccountParam extends CommonAuthHeader implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("银行卡号")
    @NotBlank(message = "银行卡号不能为空")
    private String bankCard;

    @ApiModelProperty("开户支行")
    @NotBlank(message = "开户支行不能为空")
    private String branchBankName;

    @ApiModelProperty("银行名称")
    private String bankName;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("发送验证码的手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty("类型(0 个人账户，1对公账户，总公司账户可以不传)")
    private Integer type;

    @ApiModelProperty("手机号验证码")
    @NotBlank(message = "验证码不能为空")
    private String code;

}
